package demo14;

/**
 * Created by Administrator on 2017/6/20.
 */
class Quadrangle{
    public static void draw(Quadrangle q){
    }
}
public class Parallelogram extends Quadrangle{//平行四边形类，继承了四边形类
    public static void main(String[] args) {
        Parallelogram p =new Parallelogram();//实例化平行四边形类对象引用
        draw(p);//调用父类方法
    }
}
